package com.hgdp.medicalexamination.service.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hgdp.medicalexamination.entity.DicMarryDegree;
import com.hgdp.medicalexamination.mapper.DicMarryDegreeMapper;
import com.hgdp.medicalexamination.service.DicMarryDegreeService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @param
 * @author hgdp
 * @date 2020-07-30 10:36:49
 */

@Service
@AllArgsConstructor
public class DicMarryDegreeServiceImpl extends ServiceImpl<DicMarryDegreeMapper, DicMarryDegree> implements DicMarryDegreeService {

	@Override
	public IPage<DicMarryDegree> queryPage(Page page, DicMarryDegree dicMarryDegree) {
		IPage<DicMarryDegree> pages =baseMapper.selectPage(page,Wrappers.query(dicMarryDegree));
		page.setTotal(baseMapper.selectCount(Wrappers.query(dicMarryDegree)));
		return pages;
	}
}